package com.ashley.day_0405;

import java.util.Scanner;

public class ForWhileTest {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);

		int positivenumber = 0;
		int negativenumber = 0;

		while (true) {
			int number = scan.nextInt();
			if (number > 0) {
				positivenumber++;
			} else if (number < 0) {
				negativenumber++;
			} else {
				break;
			}
		}
		System.out.println("输入的正数的个数为：" + positivenumber);
		System.out.println("输入的负数的个数为：" + negativenumber);
	}

}
